home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / git-4.3 / git-4 / git-4.3.11 / src / file.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-22  |  1.3 KB  |  57 lines

  1. /* file.h -- Backward compatibility SEEK_* constants.  */
  2.  
  3. /* Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc.
  4.  
  5.    This program is free software; you can redistribute it and/or modify
  6.    it under the terms of the GNU General Public License as published by
  7.    the Free Software Foundation; either version 2, or (at your option)
  8.    any later version.
  9.  
  10.    This program is distributed in the hope that it will be useful,
  11.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.    GNU General Public License for more details.
  14.  
  15.    You should have received a copy of the GNU General Public License
  16.    along with this program; if not, write to the Free Software
  17.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  18.  
  19. /* Written by Tudor Hulubei and Andrei Pitis.  */
  20.  
  21.  
  22. #ifndef _GIT_FILE_H
  23. #define _GIT_FILE_H
  24.  
  25.  
  26. #include <sys/file.h>
  27.  
  28.  
  29. /* Older BSD systems need this. */
  30.  
  31. #ifndef SEEK_SET
  32. #ifdef L_SET
  33. #define SEEK_SET L_SET
  34. #else
  35. #define SEEK_SET 0
  36. #endif /* L_SET */
  37. #endif /* SEEK_SET */
  38.  
  39. #ifndef SEEK_CUR
  40. #ifdef L_INCR
  41. #define SEEK_CUR L_INCR
  42. #else
  43. #define SEEK_CUR 1
  44. #endif /* L_INCR */
  45. #endif /* SEEK_CUR */
  46.  
  47. #ifndef SEEK_END
  48. #ifdef L_XTND
  49. #define SEEK_END L_XTND
  50. #else
  51. #define SEEK_END 2
  52. #endif /* L_XTND */
  53. #endif /* SEEK_END */
  54.  
  55.  
  56. #endif  /* _GIT_FILE_H */
  57.